package store.api;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import store.model.core.Store;
import store.model.core.StoreExt;

import java.util.List;

/**
 * Created by ChenGeng on 2016/11/14.
 */
public interface StoreExtApi {

    public StoreExt findStoreExtById(String id);

    public void saveStoreExt(StoreExt storeExt);

    public String toString();

    public Page<StoreExt> findByParams(List list, String storeName, Integer status, Pageable pageable, Store store);

    public Page<StoreExt> findByParams(List list, String storeName, Pageable pageable, Store store);

    public Page<StoreExt> findByParams(List list, Integer status, Pageable pageable, Store store);

    public Page<StoreExt> findByParams(List list, Pageable pageable, Store store);

    /**
     * 根据用户所属公司层级查询店铺
     * @param companyLevel
     * @return
     */
    public List<StoreExt> findStoreByUserCompanyLevel(Integer companyLevel);

    public List<StoreExt> findAllStore();

    StoreExt findStoreExtByCode(String storeCode);
}
